package com.lzy.web.response.excel;

import com.lzy.framework.core.excel.annotation.ExcelColumn;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by WIN7 on 2017/12/7.
 */
public class OrderListExportResponse implements Serializable {

    private static final long serialVersionUID = -2765140142651337662L;

    /**
     * 订单号
     */
    @ExcelColumn(value = "订单号", sort = 1, width = 256 * 15)
    private Long orderId;

    /**
     * 产品名称
     */
    @ExcelColumn(value = "产品名称", sort = 2, width = 256 * 15)
    private String productName;

    /**
     * 客户姓名
     */
    @ExcelColumn(value = "客户姓名", sort = 3, width = 256 * 15)
    private String name;

    /**
     * 下单时间
     */
    @ExcelColumn(value = "下单时间", sort = 4, width = 256 * 15)
    private String createTime;

    /**
     * 销售员
     */
    @ExcelColumn(value = "销售员", sort = 5, width = 256 * 15)
    private String userName;

    /**
     * 订单状态（1-待支付，2-已完结，3-已关闭）
     */
    @ExcelColumn(value = "订单状态", sort = 6, width = 256 * 15)
    private String statusName;

    private Integer status;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        if (status!=null){
            if (status.equals(1))
                this.statusName = "待支付";
            if (status.equals(2))
                this.statusName = "已完结";
            if (status.equals(3))
                this.statusName = "已关闭";
        }
        this.status = status;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

}
